package day06;

public class MethodDemo {
    public static void main(String[] args) {

        say();
        sayHi("王克晶","39");
        int a=age();
        int[] aa=testArray(10,100);
        for (int i=0;i<aa.length;i++){
            System.out.println(aa[i]);
        }

    }
    public static void sayHello(String name,int age){
        if (age>60){
            return;
        }
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了6");
    }
    public static void say(){
        System.out.println("大家好，我叫冯明明");
    }
    public static void sayHi(String nam,String age){
        System.out.println("大家好我叫"+nam+"今年"+age+"岁了");
    }
    public static int age(){
        return 10;

    }
    public static int[] testArray(int len,int max){
        int[] arr=new int[len];
        for (int i=0;i<arr.length;i++){
            arr[i]=(int) (Math.random()*(max+1));
        }
        return arr;
    }
}
